import request from "@/utils/request";

/**
 * 分页查询联系管理员聊天室
 * @param param
 * @returns {AxiosPromise}
 */
export function pageChatRoom(param) {
    return request({
        url: '/contact-admin/page/chat-room',
        method: 'get',
        params: param
    })
}

/**
 * 获取聊天记录
 * @returns {AxiosPromise}
 */
export function pageHistory(chatRoomUuid) {
    return request({
        url: '/contact-admin/page/history/' + chatRoomUuid,
        method: 'get'
    })
}

